@csrf
<div class="layui-row">
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label for="name" class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" class="layui-input" value="{{$company->name??''}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="encode" class="layui-form-label">简称</label>
            <div class="layui-input-block">
                <input type="text" name="code" class="layui-input" value="{{$company->code??''}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="type" class="layui-form-label">国内外</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required" placeholder="请选择国家">
                    <option value="1" @if($company->type ==1)selected @endif>国内</option>
                    <option value="2" @if($company->type ==2)selected @endif>国外</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="industries" class="layui-form-label">行业</label>
            <div class="layui-input-block">
                <ul id="industryTree" data-id="" class="dtree"></ul>
                <input type="hidden" name="industries" id="industries" value="{{$company->industries??''}}">
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label for="encode" class="layui-form-label">英文名称</label>
            <div class="layui-input-block">
                <input type="text" name="encode" class="layui-input" value="{{$company->encode??''}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="scale" class="layui-form-label">规模</label>
            <div class="layui-input-block">
                <input type="text" name="scale" class="layui-input" value="{{$company->scale??''}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="level" class="layui-form-label">等级</label>
            <div class="layui-input-block">
                <select name="level" placeholder="请选择企业等级">
                    <option value=null></option>
                    @foreach($levels as $level)
                    @if($company['level']==$level['id'])
                    <option value="{{$level['id']}}" selected>{{$level['title']}}</option>
                    @else
                    <option value="{{$level['id']}}">{{$level['title']}}</option>
                    @endif
                    @endforeach
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="tags" class="layui-form-label">标签</label>
            <div class="layui-input-block">
                <ul id="tagTree" data-id="" class="dtree"></ul>
                <input type="hidden" name="tags" id="tags" value="{{$company->tags??''}}">
            </div>
        </div>
    </div>
</div>
<div class="layui-form-item">
    <label for="address" class="layui-form-label">注册地址</label>
    <div class="layui-input-block">
        <input type="text" name="address" class="layui-input" value="{{$company->address??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="description" class="layui-form-label">备注</label>
    <div class="layui-input-block">
        <textarea type="text" name="description" class="layui-textarea"
            value="{{$company->description??''}}"></textarea>
    </div>
</div>
